package com.edu.jvm.unit01.stingtable;

/**
 * @author five-five
 * @created 2021/10/12-9:01
 */
public class TestStringIntern01 {
    public static void main(String[] args) {
        String s1 = "112";
        String s2 = new String("112");
        String s3 = s2.intern();
        System.out.println(s1 == s2);//false
        System.out.println(s1 == s3);//true
//        System.out.println(s2 == s3);//true
    }
}
